import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use (VueRouter)
const {  name  } = require('../package.json')
let preFix = '/'
if(window.__POWERED_BY_QIANKUN__){
    preFix='/micrApp/'+name+'/'
}
const routes = [
    {
        path: '/',
        name: 'home',
        component: () => import('views/Main.vue'),
        meta: {title: '系统'},
        children: [
            {
                path:preFix+'sysDict',
                name: 'sysDict',
                title: '数据字典管理',
                key: '0',
                component: () => import('src/views/system/sysDict'),
                meta: {
                    title: '数据字典管理',
                    key: '0',
                },
                children: []
            },
            {
                path:preFix+'sys_setting',
                name: 'sys_setting',
                title: '系统参数管理',
                key: '1',
                component: () => import('src/views/system/sysConfig'),
                meta: {
                    title: '系统参数管理',
                    key: '1',
                },
                children: []
            },
        ]
    },
]
export default routes
